//
//  RBBubbleVC.h
//  WaitBuyer
//
//  Created by Lan on 2018/11/19.
//  Copyright © 2018年 SummerTea. All rights reserved.
//  导航栏泡泡菜单
/*
 RBBubbleVC *vc = [RBBubbleVC new];
 [vc showFromVc:self.tabBarController data:@[@"添加好友", @"创建讨论组"] top:kRBStatusBarHeight + kRBNavigationBarHeight - 10 right:5 arrowRight:15 width:120 height:90 itemHeight:45 completion:^(NSString *text, NSInteger index) {
 if (index == 0)
 {
 RBAddFriendVC *vc = [RBAddFriendVC new];
 [weak_self.navigationController pushViewController:vc animated:YES];
 }
 else if (index == 1)
 {
 RBContactVC *vc = [RBContactVC new];
 vc.type = RBContactVCTypeCreateGroup;
 [weak_self.navigationController pushViewController:vc animated:YES];
 }
 }];

 */

#import <UIKit/UIKit.h>

@interface RBBubbleVC : UIViewController
/**
 * data文字集合
 * top 在keyWindow中尖角的y
 * right 视图距离屏幕右侧距离
 * arrowRight 尖角中间距离视图右侧距离
 * width 视图宽度
 * height 视图高度
 * itemHeight cell高度
 */
- (void)showFromVc: (UIViewController *)fromVc
              data: (NSArray *)data
               top: (CGFloat)top
             right: (CGFloat)right
        arrowRight: (CGFloat)arrowRight
             width: (CGFloat)width
            height: (CGFloat)height
        itemHeight: (CGFloat)itemHeight
        completion: (void(^)(NSString *text, NSInteger index))completion;

@end
